package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.StrategyTemplate;
import cn.wolfcode.luowowo.search.template.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IStrategyRepository extends ElasticsearchRepository<StrategyTemplate,Long> {
    /**
     * jpa格式,根据关键字获取攻略模板数组
     * @param keyword
     * @return
     */
    List<StrategyTemplate> findByDestName(String keyword);
}
